.class public Lrexsee/multimedia/CameraPreviewDialog;
.super Lrexsee/multimedia/SurfaceDialog;
.source "CameraPreviewDialog.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lrexsee/multimedia/CameraPreviewDialog$OnCameraPreviewKeyDown;
    }
.end annotation


# instance fields
.field public camera:Landroid/hardware/Camera;

.field private mOnKeyDown:Lrexsee/multimedia/CameraPreviewDialog$OnCameraPreviewKeyDown;


# direct methods
.method public constructor <init>(Lrexsee/core/browser/Browser;Ljava/lang/String;)V
    .locals 1
    .param p1, "browser"    # Lrexsee/core/browser/Browser;
    .param p2, "style"    # Ljava/lang/String;

    .prologue
    const/4 v0, 0x0

    .line 17
    invoke-direct {p0, p1, p2}, Lrexsee/multimedia/SurfaceDialog;-><init>(Lrexsee/core/browser/Browser;Ljava/lang/String;)V

    .line 13
    iput-object v0, p0, Lrexsee/multimedia/CameraPreviewDialog;->camera:Landroid/hardware/Camera;

    .line 14
    iput-object v0, p0, Lrexsee/multimedia/CameraPreviewDialog;->mOnKeyDown:Lrexsee/multimedia/CameraPreviewDialog$OnCameraPreviewKeyDown;

    .line 18
    return-void
.end method

.method static synthetic access$0(Lrexsee/multimedia/CameraPreviewDialog;)Lrexsee/core/browser/Browser;
    .locals 1

    .prologue
    .line 11
    iget-object v0, p0, Lrexsee/multimedia/CameraPreviewDialog;->mBrowser:Lrexsee/core/browser/Browser;

    return-object v0
.end method


# virtual methods
.method public getCurrentZoom()I
    .locals 8

    .prologue
    const/4 v7, -0x1

    const-class v4, Landroid/hardware/Camera$Parameters;

    .line 203
    iget-object v4, p0, Lrexsee/multimedia/CameraPreviewDialog;->camera:Landroid/hardware/Camera;

    if-nez v4, :cond_1

    .line 204
    iget-object v4, p0, Lrexsee/multimedia/CameraPreviewDialog;->mBrowser:Lrexsee/core/browser/Browser;

    if-eqz v4, :cond_0

    iget-object v4, p0, Lrexsee/multimedia/CameraPreviewDialog;->mBrowser:Lrexsee/core/browser/Browser;

    invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/Class;->getName()Ljava/lang/String;

    move-result-object v5

    const-string v6, "Camera is not started."

    invoke-virtual {v4, v5, v6}, Lrexsee/core/browser/Browser;->exception(Ljava/lang/String;Ljava/lang/String;)V

    :cond_0
    move v4, v7

    .line 216
    :goto_0
    return v4

    .line 207
    :cond_1
    iget-object v4, p0, Lrexsee/multimedia/CameraPreviewDialog;->camera:Landroid/hardware/Camera;

    invoke-virtual {v4}, Landroid/hardware/Camera;->getParameters()Landroid/hardware/Camera$Parameters;

    move-result-object v2

    .line 209
    .local v2, "paras":Landroid/hardware/Camera$Parameters;
    :try_start_0
    const-class v4, Landroid/hardware/Camera$Parameters;

    const-string v5, "isZoomSupported"

    const/4 v6, 0x0

    new-array v6, v6, [Ljava/lang/Class;

    invoke-virtual {v4, v5, v6}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;

    move-result-object v1

    .line 210
    .local v1, "method":Ljava/lang/reflect/Method;
    const/4 v4, 0x0

    new-array v4, v4, [Ljava/lang/Object;

    invoke-virtual {v1, v2, v4}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Ljava/lang/Boolean;

    invoke-virtual {v4}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v3

    .line 211
    .local v3, "support":Z
    if-nez v3, :cond_2

    move v4, v7

    goto :goto_0

    .line 212
    :cond_2
    const-class v4, Landroid/hardware/Camera$Parameters;

    const-string v5, "getZoom"

    const/4 v6, 0x0

    new-array v6, v6, [Ljava/lang/Class;

    invoke-virtual {v4, v5, v6}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;

    move-result-object v1

    .line 213
    const/4 v4, 0x0

    new-array v4, v4, [Ljava/lang/Object;

    invoke-virtual {v1, v2, v4}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Ljava/lang/Integer;

    invoke-virtual {v4}, Ljava/lang/Integer;->intValue()I
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    move-result v4

    goto :goto_0

    .line 214
    .end local v1    # "method":Ljava/lang/reflect/Method;
    .end local v3    # "support":Z
    :catch_0
    move-exception v4

    move-object v0, v4

    .line 215
    .local v0, "e":Ljava/lang/Exception;
    iget-object v4, p0, Lrexsee/multimedia/CameraPreviewDialog;->mBrowser:Lrexsee/core/browser/Browser;

    invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/Class;->getName()Ljava/lang/String;

    move-result-object v5

    const-string v6, "Can not find the method.."

    invoke-virtual {v4, v5, v6}, Lrexsee/core/browser/Browser;->exception(Ljava/lang/String;Ljava/lang/String;)V

    move v4, v7

    .line 216
    goto :goto_0
.end method

.method public getMaxZoom()I
    .locals 8

    .prologue
    const/4 v7, -0x1

    const-class v4, Landroid/hardware/Camera$Parameters;

    .line 185
    iget-object v4, p0, Lrexsee/multimedia/CameraPreviewDialog;->camera:Landroid/hardware/Camera;

    if-nez v4, :cond_1

    .line 186
    iget-object v4, p0, Lrexsee/multimedia/CameraPreviewDialog;->mBrowser:Lrexsee/core/browser/Browser;

    if-eqz v4, :cond_0

    iget-object v4, p0, Lrexsee/multimedia/CameraPreviewDialog;->mBrowser:Lrexsee/core/browser/Browser;

    invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/Class;->getName()Ljava/lang/String;

    move-result-object v5

    const-string v6, "Camera is not started."

    invoke-virtual {v4, v5, v6}, Lrexsee/core/browser/Browser;->exception(Ljava/lang/String;Ljava/lang/String;)V

    :cond_0
    move v4, v7

    .line 199
    :goto_0
    return v4

    .line 189
    :cond_1
    iget-object v4, p0, Lrexsee/multimedia/CameraPreviewDialog;->camera:Landroid/hardware/Camera;

    invoke-virtual {v4}, Landroid/hardware/Camera;->getParameters()Landroid/hardware/Camera$Parameters;

    move-result-object v2

    .line 192
    .local v2, "paras":Landroid/hardware/Camera$Parameters;
    :try_start_0
    const-class v4, Landroid/hardware/Camera$Parameters;

    const-string v5, "isZoomSupported"

    const/4 v6, 0x0

    new-array v6, v6, [Ljava/lang/Class;

    invoke-virtual {v4, v5, v6}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;

    move-result-object v1

    .line 193
    .local v1, "method":Ljava/lang/reflect/Method;
    const/4 v4, 0x0

    new-array v4, v4, [Ljava/lang/Object;

    invoke-virtual {v1, v2, v4}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Ljava/lang/Boolean;

    invoke-virtual {v4}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v3

    .line 194
    .local v3, "support":Z
    if-nez v3, :cond_2

    move v4, v7

    goto :goto_0

    .line 195
    :cond_2
    const-class v4, Landroid/hardware/Camera$Parameters;

    const-string v5, "getMaxZoom"

    const/4 v6, 0x0

    new-array v6, v6, [Ljava/lang/Class;

    invoke-virtual {v4, v5, v6}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;

    move-result-object v1

    .line 196
    const/4 v4, 0x0

    new-array v4, v4, [Ljava/lang/Object;

    invoke-virtual {v1, v2, v4}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Ljava/lang/Integer;

    invoke-virtual {v4}, Ljava/lang/Integer;->intValue()I
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    move-result v4

    goto :goto_0

    .line 197
    .end local v1    # "method":Ljava/lang/reflect/Method;
    .end local v3    # "support":Z
    :catch_0
    move-exception v4

    move-object v0, v4

    .line 198
    .local v0, "e":Ljava/lang/Exception;
    iget-object v4, p0, Lrexsee/multimedia/CameraPreviewDialog;->mBrowser:Lrexsee/core/browser/Browser;

    invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/Class;->getName()Ljava/lang/String;

    move-result-object v5

    const-string v6, "Can not find the method.."

    invoke-virtual {v4, v5, v6}, Lrexsee/core/browser/Browser;->exception(Ljava/lang/String;Ljava/lang/String;)V

    move v4, v7

    .line 199
    goto :goto_0
.end method

.method public isSmoothZoomSupported()Z
    .locals 7

    .prologue
    const/4 v6, 0x0

    .line 155
    iget-object v3, p0, Lrexsee/multimedia/CameraPreviewDialog;->camera:Landroid/hardware/Camera;

    if-nez v3, :cond_1

    .line 156
    iget-object v3, p0, Lrexsee/multimedia/CameraPreviewDialog;->mBrowser:Lrexsee/core/browser/Browser;

    if-eqz v3, :cond_0

    iget-object v3, p0, Lrexsee/multimedia/CameraPreviewDialog;->mBrowser:Lrexsee/core/browser/Browser;

    invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/Class;->getName()Ljava/lang/String;

    move-result-object v4

    const-string v5, "Camera is not started."

    invoke-virtual {v3, v4, v5}, Lrexsee/core/browser/Browser;->exception(Ljava/lang/String;Ljava/lang/String;)V

    :cond_0
    move v3, v6

    .line 166
    :goto_0
    return v3

    .line 159
    :cond_1
    iget-object v3, p0, Lrexsee/multimedia/CameraPreviewDialog;->camera:Landroid/hardware/Camera;

    invoke-virtual {v3}, Landroid/hardware/Camera;->getParameters()Landroid/hardware/Camera$Parameters;

    move-result-object v2

    .line 162
    .local v2, "paras":Landroid/hardware/Camera$Parameters;
    :try_start_0
    const-class v3, Landroid/hardware/Camera$Parameters;

    const-string v4, "isSmoothZoomSupported"

    const/4 v5, 0x0

    new-array v5, v5, [Ljava/lang/Class;

    invoke-virtual {v3, v4, v5}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;

    move-result-object v1

    .line 163
    .local v1, "method":Ljava/lang/reflect/Method;
    const/4 v3, 0x0

    new-array v3, v3, [Ljava/lang/Object;

    invoke-virtual {v1, v2, v3}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Ljava/lang/Boolean;

    invoke-virtual {v3}, Ljava/lang/Boolean;->booleanValue()Z
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    move-result v3

    goto :goto_0

    .line 164
    .end local v1    # "method":Ljava/lang/reflect/Method;
    :catch_0
    move-exception v3

    move-object v0, v3

    .line 165
    .local v0, "e":Ljava/lang/Exception;
    iget-object v3, p0, Lrexsee/multimedia/CameraPreviewDialog;->mBrowser:Lrexsee/core/browser/Browser;

    invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/Class;->getName()Ljava/lang/String;

    move-result-object v4

    const-string v5, "Can not find the method isSmoothZoomSupported."

    invoke-virtual {v3, v4, v5}, Lrexsee/core/browser/Browser;->exception(Ljava/lang/String;Ljava/lang/String;)V

    move v3, v6

    .line 166
    goto :goto_0
.end method

.method public isZoomSupported()Z
    .locals 7

    .prologue
    const/4 v6, 0x0

    .line 170
    iget-object v3, p0, Lrexsee/multimedia/CameraPreviewDialog;->camera:Landroid/hardware/Camera;

    if-nez v3, :cond_1

    .line 171
    iget-object v3, p0, Lrexsee/multimedia/CameraPreviewDialog;->mBrowser:Lrexsee/core/browser/Browser;

    if-eqz v3, :cond_0

    iget-object v3, p0, Lrexsee/multimedia/CameraPreviewDialog;->mBrowser:Lrexsee/core/browser/Browser;

    invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/Class;->getName()Ljava/lang/String;

    move-result-object v4

    const-string v5, "Camera is not started."

    invoke-virtual {v3, v4, v5}, Lrexsee/core/browser/Browser;->exception(Ljava/lang/String;Ljava/lang/String;)V

    :cond_0
    move v3, v6

    .line 181
    :goto_0
    return v3

    .line 174
    :cond_1
    iget-object v3, p0, Lrexsee/multimedia/CameraPreviewDialog;->camera:Landroid/hardware/Camera;

    invoke-virtual {v3}, Landroid/hardware/Camera;->getParameters()Landroid/hardware/Camera$Parameters;

    move-result-object v2

    .line 177
    .local v2, "paras":Landroid/hardware/Camera$Parameters;
    :try_start_0
    const-class v3, Landroid/hardware/Camera$Parameters;

    const-string v4, "isZoomSupported"

    const/4 v5, 0x0

    new-array v5, v5, [Ljava/lang/Class;

    invoke-virtual {v3, v4, v5}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;

    move-result-object v1

    .line 178
    .local v1, "method":Ljava/lang/reflect/Method;
    const/4 v3, 0x0

    new-array v3, v3, [Ljava/lang/Object;

    invoke-virtual {v1, v2, v3}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Ljava/lang/Boolean;

    invoke-virtual {v3}, Ljava/lang/Boolean;->booleanValue()Z
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    move-result v3

    goto :goto_0

    .line 179
    .end local v1    # "method":Ljava/lang/reflect/Method;
    :catch_0
    move-exception v3

    move-object v0, v3

    .line 180
    .local v0, "e":Ljava/lang/Exception;
    iget-object v3, p0, Lrexsee/multimedia/CameraPreviewDialog;->mBrowser:Lrexsee/core/browser/Browser;

    invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/Class;->getName()Ljava/lang/String;

    move-result-object v4

    const-string v5, "Can not find the method isZoomSupported."

    invoke-virtual {v3, v4, v5}, Lrexsee/core/browser/Browser;->exception(Ljava/lang/String;Ljava/lang/String;)V

    move v3, v6

    .line 181
    goto :goto_0
.end method

.method public final onKeyDown(ILandroid/view/KeyEvent;)Z
    .locals 2
    .param p1, "keyCode"    # I
    .param p2, "event"    # Landroid/view/KeyEvent;

    .prologue
    const/4 v1, 0x1

    .line 79
    const/4 v0, 0x4

    if-eq p1, v0, :cond_0

    .line 80
    const/16 v0, 0x52

    if-eq p1, v0, :cond_0

    .line 81
    const/16 v0, 0x54

    if-eq p1, v0, :cond_0

    .line 82
    const/16 v0, 0x50

    if-ne p1, v0, :cond_2

    .line 83
    :cond_0
    iget-object v0, p0, Lrexsee/multimedia/CameraPreviewDialog;->mOnKeyDown:Lrexsee/multimedia/CameraPreviewDialog$OnCameraPreviewKeyDown;

    if-eqz v0, :cond_1

    iget-object v0, p0, Lrexsee/multimedia/CameraPreviewDialog;->mOnKeyDown:Lrexsee/multimedia/CameraPreviewDialog$OnCameraPreviewKeyDown;

    invoke-virtual {v0, p1}, Lrexsee/multimedia/CameraPreviewDialog$OnCameraPreviewKeyDown;->run(I)V

    :cond_1
    move v0, v1

    .line 92
    :goto_0
    return v0

    .line 85
    :cond_2
    const/16 v0, 0x18

    if-ne p1, v0, :cond_3

    .line 86
    invoke-virtual {p0}, Lrexsee/multimedia/CameraPreviewDialog;->zoomOut()Z

    move v0, v1

    .line 87
    goto :goto_0

    .line 88
    :cond_3
    const/16 v0, 0x19

    if-ne p1, v0, :cond_4

    .line 89
    invoke-virtual {p0}, Lrexsee/multimedia/CameraPreviewDialog;->zoomIn()Z

    move v0, v1

    .line 90
    goto :goto_0

    .line 92
    :cond_4
    invoke-super {p0, p1, p2}, Lrexsee/multimedia/SurfaceDialog;->onKeyDown(ILandroid/view/KeyEvent;)Z

    move-result v0

    goto :goto_0
.end method

.method public start(ILjava/lang/Runnable;Lrexsee/multimedia/CameraPreviewDialog$OnCameraPreviewKeyDown;)V
    .locals 4
    .param p1, "orientation"    # I
    .param p2, "startedRunnable"    # Ljava/lang/Runnable;
    .param p3, "onKeyDown"    # Lrexsee/multimedia/CameraPreviewDialog$OnCameraPreviewKeyDown;

    .prologue
    .line 21
    iput-object p3, p0, Lrexsee/multimedia/CameraPreviewDialog;->mOnKeyDown:Lrexsee/multimedia/CameraPreviewDialog$OnCameraPreviewKeyDown;

    .line 23
    :try_start_0
    new-instance v0, Lrexsee/multimedia/CameraPreviewDialog$1;

    invoke-direct {v0, p0, p1, p2}, Lrexsee/multimedia/CameraPreviewDialog$1;-><init>(Lrexsee/multimedia/CameraPreviewDialog;ILjava/lang/Runnable;)V

    .line 71
    .local v0, "callback":Landroid/view/SurfaceHolder$Callback;
    invoke-super {p0, v0}, Lrexsee/multimedia/SurfaceDialog;->start(Landroid/view/SurfaceHolder$Callback;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 75
    .end local v0    # "callback":Landroid/view/SurfaceHolder$Callback;
    :cond_0
    :goto_0
    return-void

    .line 72
    :catch_0
    move-exception v2

    move-object v1, v2

    .line 73
    .local v1, "e":Ljava/lang/Exception;
    iget-object v2, p0, Lrexsee/multimedia/CameraPreviewDialog;->mBrowser:Lrexsee/core/browser/Browser;

    if-eqz v2, :cond_0

    iget-object v2, p0, Lrexsee/multimedia/CameraPreviewDialog;->mBrowser:Lrexsee/core/browser/Browser;

    invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/Class;->getName()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3, v1}, Lrexsee/core/browser/Browser;->exception(Ljava/lang/String;Ljava/lang/Exception;)V

    goto :goto_0
.end method

.method public zoom(I)Z
    .locals 10
    .param p1, "value"    # I

    .prologue
    const/4 v9, 0x1

    const/4 v8, 0x0

    .line 96
    iget-object v4, p0, Lrexsee/multimedia/CameraPreviewDialog;->camera:Landroid/hardware/Camera;

    if-nez v4, :cond_1

    .line 97
    iget-object v4, p0, Lrexsee/multimedia/CameraPreviewDialog;->mBrowser:Lrexsee/core/browser/Browser;

    if-eqz v4, :cond_0

    iget-object v4, p0, Lrexsee/multimedia/CameraPreviewDialog;->mBrowser:Lrexsee/core/browser/Browser;

    invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/Class;->getName()Ljava/lang/String;

    move-result-object v5

    const-string v6, "Camera is not started."

    invoke-virtual {v4, v5, v6}, Lrexsee/core/browser/Browser;->exception(Ljava/lang/String;Ljava/lang/String;)V

    :cond_0
    move v4, v8

    .line 151
    :goto_0
    return v4

    .line 100
    :cond_1
    iget-object v4, p0, Lrexsee/multimedia/CameraPreviewDialog;->camera:Landroid/hardware/Camera;

    invoke-virtual {v4}, Landroid/hardware/Camera;->getParameters()Landroid/hardware/Camera$Parameters;

    move-result-object v3

    .line 101
    .local v3, "paras":Landroid/hardware/Camera$Parameters;
    invoke-virtual {p0}, Lrexsee/multimedia/CameraPreviewDialog;->getMaxZoom()I

    move-result v1

    .line 102
    .local v1, "maxZoom":I
    if-ltz p1, :cond_2

    if-le p1, v1, :cond_4

    .line 103
    :cond_2
    iget-object v4, p0, Lrexsee/multimedia/CameraPreviewDialog;->mBrowser:Lrexsee/core/browser/Browser;

    if-eqz v4, :cond_3

    iget-object v4, p0, Lrexsee/multimedia/CameraPreviewDialog;->mBrowser:Lrexsee/core/browser/Browser;

    invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/Class;->getName()Ljava/lang/String;

    move-result-object v5

    new-instance v6, Ljava/lang/StringBuilder;

    const-string v7, "Zoom value should not exceed 0~"

    invoke-direct {v6, v7}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v6, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v6

    const-string v7, "."

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v4, v5, v6}, Lrexsee/core/browser/Browser;->exception(Ljava/lang/String;Ljava/lang/String;)V

    :cond_3
    move v4, v8

    .line 104
    goto :goto_0

    .line 115
    :cond_4
    :try_start_0
    invoke-virtual {p0}, Lrexsee/multimedia/CameraPreviewDialog;->isSmoothZoomSupported()Z
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_2

    move-result v4

    if-eqz v4, :cond_6

    .line 118
    :try_start_1
    const-class v4, Landroid/hardware/Camera;

    const-string v5, "startSmoothZoom"

    invoke-static {v4, v5}, Lrexsee/core/utilities/RexseeClazz;->getMethod(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/reflect/Method;

    move-result-object v2

    .line 119
    .local v2, "method":Ljava/lang/reflect/Method;
    if-eqz v2, :cond_5

    iget-object v4, p0, Lrexsee/multimedia/CameraPreviewDialog;->camera:Landroid/hardware/Camera;

    const/4 v5, 0x1

    new-array v5, v5, [Ljava/lang/Object;

    const/4 v6, 0x0

    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v7

    aput-object v7, v5, v6

    invoke-virtual {v2, v4, v5}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;

    move v4, v9

    .line 128
    goto :goto_0

    .line 121
    :cond_5
    iget-object v4, p0, Lrexsee/multimedia/CameraPreviewDialog;->mBrowser:Lrexsee/core/browser/Browser;

    invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/Class;->getName()Ljava/lang/String;

    move-result-object v5

    const-string v6, "Can not find the method startSmoothZoom. "

    invoke-virtual {v4, v5, v6}, Lrexsee/core/browser/Browser;->exception(Ljava/lang/String;Ljava/lang/String;)V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    move v4, v8

    .line 122
    goto :goto_0

    .line 124
    .end local v2    # "method":Ljava/lang/reflect/Method;
    :catch_0
    move-exception v4

    move-object v0, v4

    .line 125
    .local v0, "e":Ljava/lang/Exception;
    :try_start_2
    iget-object v4, p0, Lrexsee/multimedia/CameraPreviewDialog;->mBrowser:Lrexsee/core/browser/Browser;

    invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/Class;->getName()Ljava/lang/String;

    move-result-object v5

    new-instance v6, Ljava/lang/StringBuilder;

    const-string v7, "Can not find the method. SmoothZoom: "

    invoke-direct {v6, v7}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Ljava/lang/Exception;->getLocalizedMessage()Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v4, v5, v6}, Lrexsee/core/browser/Browser;->exception(Ljava/lang/String;Ljava/lang/String;)V

    move v4, v8

    .line 126
    goto/16 :goto_0

    .line 129
    .end local v0    # "e":Ljava/lang/Exception;
    :cond_6
    invoke-virtual {p0}, Lrexsee/multimedia/CameraPreviewDialog;->isZoomSupported()Z
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_2

    move-result v4

    if-eqz v4, :cond_8

    .line 133
    :try_start_3
    const-class v4, Landroid/hardware/Camera$Parameters;

    const-string v5, "setZoom"

    invoke-static {v4, v5}, Lrexsee/core/utilities/RexseeClazz;->getMethod(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/reflect/Method;

    move-result-object v2

    .line 134
    .restart local v2    # "method":Ljava/lang/reflect/Method;
    if-eqz v2, :cond_7

    const/4 v4, 0x1

    new-array v4, v4, [Ljava/lang/Object;

    const/4 v5, 0x0

    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v6

    aput-object v6, v4, v5

    invoke-virtual {v2, v3, v4}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;

    .line 139
    iget-object v4, p0, Lrexsee/multimedia/CameraPreviewDialog;->camera:Landroid/hardware/Camera;

    invoke-virtual {v4, v3}, Landroid/hardware/Camera;->setParameters(Landroid/hardware/Camera$Parameters;)V

    move v4, v9

    .line 144
    goto/16 :goto_0

    .line 136
    :cond_7
    iget-object v4, p0, Lrexsee/multimedia/CameraPreviewDialog;->mBrowser:Lrexsee/core/browser/Browser;

    invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/Class;->getName()Ljava/lang/String;

    move-result-object v5

    const-string v6, "Can not find the method setZoom. "

    invoke-virtual {v4, v5, v6}, Lrexsee/core/browser/Browser;->exception(Ljava/lang/String;Ljava/lang/String;)V
    :try_end_3
    .catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_1

    move v4, v8

    .line 137
    goto/16 :goto_0

    .line 140
    .end local v2    # "method":Ljava/lang/reflect/Method;
    :catch_1
    move-exception v4

    move-object v0, v4

    .line 141
    .restart local v0    # "e":Ljava/lang/Exception;
    :try_start_4
    iget-object v4, p0, Lrexsee/multimedia/CameraPreviewDialog;->mBrowser:Lrexsee/core/browser/Browser;

    invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/Class;->getName()Ljava/lang/String;

    move-result-object v5

    new-instance v6, Ljava/lang/StringBuilder;

    const-string v7, "Can not find the method. Zoom: "

    invoke-direct {v6, v7}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Ljava/lang/Exception;->getLocalizedMessage()Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v4, v5, v6}, Lrexsee/core/browser/Browser;->exception(Ljava/lang/String;Ljava/lang/String;)V

    move v4, v8

    .line 142
    goto/16 :goto_0

    .line 146
    .end local v0    # "e":Ljava/lang/Exception;
    :cond_8
    iget-object v4, p0, Lrexsee/multimedia/CameraPreviewDialog;->mBrowser:Lrexsee/core/browser/Browser;

    if-eqz v4, :cond_9

    iget-object v4, p0, Lrexsee/multimedia/CameraPreviewDialog;->mBrowser:Lrexsee/core/browser/Browser;

    invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/Class;->getName()Ljava/lang/String;

    move-result-object v5

    const-string v6, "Camera does not support zoom function."

    invoke-virtual {v4, v5, v6}, Lrexsee/core/browser/Browser;->exception(Ljava/lang/String;Ljava/lang/String;)V
    :try_end_4
    .catch Ljava/lang/Exception; {:try_start_4 .. :try_end_4} :catch_2

    :cond_9
    move v4, v8

    .line 147
    goto/16 :goto_0

    .line 149
    :catch_2
    move-exception v4

    move-object v0, v4

    .line 150
    .restart local v0    # "e":Ljava/lang/Exception;
    iget-object v4, p0, Lrexsee/multimedia/CameraPreviewDialog;->mBrowser:Lrexsee/core/browser/Browser;

    if-eqz v4, :cond_a

    iget-object v4, p0, Lrexsee/multimedia/CameraPreviewDialog;->mBrowser:Lrexsee/core/browser/Browser;

    invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/Class;->getName()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5, v0}, Lrexsee/core/browser/Browser;->exception(Ljava/lang/String;Ljava/lang/Exception;)V

    :cond_a
    move v4, v8

    .line 151
    goto/16 :goto_0
.end method

.method public zoomIn()Z
    .locals 3

    .prologue
    .line 221
    invoke-virtual {p0}, Lrexsee/multimedia/CameraPreviewDialog;->getMaxZoom()I

    move-result v1

    .line 222
    .local v1, "max":I
    invoke-virtual {p0}, Lrexsee/multimedia/CameraPreviewDialog;->getCurrentZoom()I

    move-result v0

    .line 223
    .local v0, "curr":I
    if-lez v1, :cond_0

    if-ltz v0, :cond_0

    if-le v1, v0, :cond_0

    .line 224
    add-int/lit8 v0, v0, 0x1

    .line 225
    invoke-virtual {p0, v0}, Lrexsee/multimedia/CameraPreviewDialog;->zoom(I)Z

    move-result v2

    .line 227
    :goto_0
    return v2

    :cond_0
    const/4 v2, 0x0

    goto :goto_0
.end method

.method public zoomOut()Z
    .locals 2

    .prologue
    .line 231
    invoke-virtual {p0}, Lrexsee/multimedia/CameraPreviewDialog;->getCurrentZoom()I

    move-result v0

    .line 232
    .local v0, "curr":I
    if-lez v0, :cond_0

    .line 233
    add-int/lit8 v0, v0, -0x1

    .line 234
    invoke-virtual {p0, v0}, Lrexsee/multimedia/CameraPreviewDialog;->zoom(I)Z

    move-result v1

    .line 236
    :goto_0
    return v1

    :cond_0
    const/4 v1, 0x0

    goto :goto_0
.end method
